<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Risultati della Ricerca</title>
</head>
<body>
	<%
	   int size = Integer.parseInt(request.getAttribute("size").toString());
	   for(int i = 0; i < size; i++) {
		   	out.println(request.getAttribute("id" + i));
		   	out.println(request.getAttribute("nome" + i));
		   	out.println(request.getAttribute("cognome" + i));
		  	out.println("<form name = \" vaiallapagina\" method = \"post\" action = \"ProfiloServlet\">");
		   	out.println("<input type = \"hidden\" name = \"idSessione\" value=\"" + request.getAttribute("idSessione") + "\">");
			out.println("<input type = \"hidden\" name = \"idRichiesta\" value=\"" + request.getAttribute("id" + i) + "\">");
			out.println("<input type = \"submit\" value = \"Vai al Profilo\">");
			out.println("</form>");
	   }
	%>
	
	<a href="Homepage.jsp">Torna alla Pagina Iniziale di SwimV2</a>
	
</body>
</html>